import request from '../utils/service'
/* 
    一级分类
    /api/category/list

*/

export let list = ()=>{
    return request({
        url:"/api/category/list",
        method:"GET"
    })
}

/* 
    二级分类
*/

export let subcate = (id)=>{
    return request({
        url:'/api/category/subcate',
        method:"GET",
        params:{
            id
        }

    })
}